#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="38" align="center"><table width="98%" height="34" border="0" cellpadding="0" cellspacing="0">
          <tr>
              <td width="40" align="right"><img src="/images/list.gif" width="32" height="32" /></td>
              <td class="titletxt"><strong>已审核评论</strong> <a href="/blogReview.do?parameter=ulist">待审核评论</a></td>
          </tr>
        </table></td>
    </tr>
</table>
#macro(orderPic $type)
#if ($orderField.equals($type)) 
<img src="/images/system/ico/${orderType}.gif">  
#end
#end
<script language="JavaScript" src="/js/forbidNew.js" type="text/JavaScript"></script>
<script language="JavaScript">
function selectAll(obj,value)
{
if(obj.length==undefined)
{
obj.checked=value;
}
for(var i=0;i<obj.length;i++)
obj[i].checked=value;
}
function doEdit()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要编辑的数据！");
return false;
}
ListForm.parameter.value="edit";
ListForm.submit();
}

function doShow(type)
{
	var id=ListForm.cid.value;
	if(id==""){
		alert("请选择要查看的数据！");
		return false;
	}
	if(type!="photo"){
		type="doc";
	}
	window.open("/blogReview.do?parameter=show&type="+type+"&pid="+id,"","");
}

function doAdd()
{
ListForm.parameter.value="new";
ListForm.cid.value="";
ListForm.submit();
}
function doCheck()
{
}
function doPublish()
{
var ids="";
var obj=ListForm.cids;
for(var i=0;i<obj.length;i++)
if(obj[i].checked)ids+=obj[i].value+",";
if(ids=="")ids=ListForm.cid.value+",";
ListForm.mulitCid.value=ids;
if(ids==",")
{
alert("请选择要发布的内容！");
return false;
}
}
function selectRow(id)
{
ListForm.cid.value=id;
}
function doDel()
{
var ids="";
var obj=ListForm.cids;
for(var i=0;i<obj.length;i++)
if(obj[i].checked)ids+=obj[i].value+",";
if(ids=="")ids=ListForm.cid.value+",";
ListForm.mulitCid.value=ids;
if(ids==",")
{
alert("请选择要删除的内容！");
return false;
}
if(confirm("文章删除后不能恢复，请问要执行删除操作吗？"))
{
ListForm.parameter.value="del";
ListForm.submit();
}
}
function gotoPage(n)
{
	ListForm.page.value=n;
	ListForm.submit();
}
function doSort(fld)
{
	
	if(ListForm.orderType.value=='asc')
			ListForm.orderType.value='desc';
		else
			ListForm.orderType.value='asc';	

	ListForm.orderField.value=fld;
	ListForm.method="post";
	ListForm.parameter.value="query";
    ListForm.submit();
}
function doSearch()
{
ListForm.parameter.value="query";
ListForm.submit();
}
</script>
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top">
	<form id="ListForm" name="ListForm"  method="post" action="/blogReview.do">
	   <input type="hidden" name="parameter" value="">	     
	   <input type="hidden" name="subCommand" value="">
	   <input type="hidden" name="cid"   value="$!cid">
	   <input type="hidden" name="mulitCid"   value="$!mulitCid">
       <input type="hidden" name="page"   value="$!page">
       <input name="orderField" type="hidden" value="$!orderField">
      <input name="orderType" type="hidden" value="$!orderType">
			<div style="margin:8px">
	      <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CBD9D9" class="BorderLine">
            <thead>
			<!--
			 <tr valign="middle"> 
                <td height="24" colspan="8" align="center" background="/images/system/index_18.gif" class="title1">
				<table width="100%"  border="0">
                  <tr>
                    <td>评论对象：
                      <input name="queryParent" type="text" size="15" value="$!queryParnet"></td>
                  <td>标题：
                    <input name="queryTitle" type="text" size="8" value="$!queryTitle"></td>
                    <td> 评论人：
                      <input name="queryInputUser" type="text" size="8" value="$!queryInputUser"></td>
                    <td><input type="submit" name="Submit4" value="查询" onClick="doSearch();"></td>
                  </tr>
                </table></td>
              </tr>
			  -->
              <tr valign="middle"> 
                <td width="20" height="24" align="center" background="/images/index_18.gif" class="title1"  style="cursor: hand;"><input type="checkbox"  onclick="selectAll(cids,this.checked);"></td>
                <td width="75" align="center"  style="cursor: hand;" onClick="doSort('parent')" class="title1">评论对象#orderPic("parent")</td>
                <td width="50" align="center" style="cursor: hand;" onClick="doSort('inputuser')"  class="title1">评论人#orderPic("inputuser")</td>
                <td width="50" align="center" style="cursor: hand;" onClick="doSort('inputuser')"  class="title1">内容</td>
                <td width="100" align="center" nowrap style="cursor: hand;" onClick="doSort('inputtime')" class="title1">评论日期#orderPic("inputtime")</td>
                <td width="83" align="center" nowrap  class="title1">IP</td>
                <td align="center" nowrap class="title1">操 作</td>
              </tr>
            </thead>
            #foreach( $info in $list) 
            <tr bgcolor="#F8FCF8" class="coolselect" style="cursor:default " id='$!info.cid'   onmouseover="this.className='MouseOver';" onMouseOut="this.className='MouseOut'" onDblClick="selectRow(this.id);doEdit();" onClick="selectRow(this.id);"> 
              <td height="23"><input type="checkbox" name="cids" value="$!info.cid"></td>
              <td>
			  <a href="javascript:selectRow('$!info.parentid');doShow('$info.url');">

                 #if($info.url=="photo")

                    $!photoService.getPhoto($!info.parentid).title
				 #else
				    $!cocService.getBlogNewsDoc($!info.parentid).title
				 #end

			  </a></td>
              <td>$!info.inputuser</td>
              <td align="left">$!info.content</td>
              <td align="center" nowrap>$!info.inputtime</td>
              <td align="center" nowrap>$!info.ip</td>
              <td align="center" nowrap>
              	<!--a href="javascript:selectRow('$!info.cid');doEdit();">修改</a-->
              	<a href="javascript:selectRow('$!info.cid');doDel();"><img src="/images/system/delete.png" width="16" height="16" border="0" align="absmiddle"/></a>
              	<a href="javascript:selectRow('$!info.cid');doDel();">删除</a>
              </td>
            </tr>
            #end 
          </table>
					</div>
	    </form>
	  </td>
  </tr>
  <tr><td align="center" height="50">
   <table width="92%" height="24" border="0" cellpadding="0" cellspacing="0">
        <tr valign="bottom">
           <td align="center">第<strong>
	#if($!page>0)
	$!page
	#else
	 1
	#end
	
	</strong>页 共<strong>#if($!pages>0)
	$!pages
	#else
	 1
	#end</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span>
	　　
	#if($gotoPageHTML=="")
	#else
     分页：$!gotoPageHTML　
	#end
	</td>
        </tr>
      </table>
  </td></tr>
</table>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>
#if ($msg)
<script>
alert('$!msg');</script>
#end
